﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TechProg
{
    public partial class Operand : Form
    {
      uint operand1 = 0;
      uint operand2 = 0;

      public uint Oper1()
      {
         return operand1;
      }

      public uint Oper2()
      {
      
        return operand2;
      }

        public Operand()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if ((textBox1.Text != "") && (textBox2.Text != ""))
            {
                operand1 = Convert.ToUInt32(textBox1.Text);
                operand2 = Convert.ToUInt32(textBox2.Text);
                this.DialogResult = DialogResult.OK;
            }
            else
                MessageBox.Show("Заполните пустые поля!");
        }
    }
}
